package com.platform.modular.feign.account;

import com.platform.common.utils.R;
import com.platform.modular.model.account.dto.DecodeUserMobileDTO;
import com.platform.modular.model.account.dto.UserWechatInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yifei.han
 * @version 1.0
 * @className UserWechatFeignService
 * @description
 * @date 2022/3/9
 */
@FeignClient(value = "sk-platform-account", contextId = "userWechat")
public interface UserWechatFeignService {

    @RequestMapping("/userwechat/saveLoginInfo")
    String obtainUserWechatOpenid(@RequestParam("code") String code,
                                  @RequestParam("appId") String appId);

    @RequestMapping(value = "/userwechat/saveUserWechatInfo")
    R saveUserWechatInfo(UserWechatInfoDTO userWechatInfoDTO);

    @RequestMapping(value = "/userwechat/obtainUserWechatMobile")
    R obtainUserWechatMobile(DecodeUserMobileDTO decodeUserMobileForm);

}
